package com.reliable.api.dto.session;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 会话IP详细信息分页查询结果DTO
 */
@Data
@ApiModel(value = "会话IP详细信息分页查询结果DTO")
public class SessionIpDetailPageDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 会话IP详细信息列表
     */
    @ApiModelProperty(value = "会话IP详细信息列表")
    private List<SessionIpDetailDTO> records;

    /**
     * 总记录数
     */
    @ApiModelProperty(value = "总记录数")
    private Long total;

    /**
     * 当前页码
     */
    @ApiModelProperty(value = "当前页码")
    private Long pageNum;

    /**
     * 每页大小
     */
    @ApiModelProperty(value = "每页大小")
    private Long pageSize;

    public SessionIpDetailPageDTO() {
    }

    public SessionIpDetailPageDTO(List<SessionIpDetailDTO> records, Long total, Long pageNum, Long pageSize) {
        this.records = records;
        this.total = total;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }
}